package cn.mysdp.biz.controller;


import cn.mysdp.biz.controller.*;
import cn.mysdp.biz.dto.request.*;
import cn.mysdp.biz.dto.response.*;

import java.util.List;

import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

/**
 * @ClassName: SdpWorkspaceWebController
 * @Description:
 * @Author: SDP
 * @Date: 2021-10-30
 * @Version: 1.0
 * Table: sdp_workspace
 * Comment:
 * workspace
 */
@RestController
@RequestMapping(value = "/sdp_workspace")
public class SdpWorkspaceWebController extends SdpWorkspaceWebCustomController {
    static {
        addRequestClass("sdp_workspace", "add", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceAddRequest.class);
        addRequestClass("sdp_workspace", "add_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceAddRequest.class);

        addRequestClass("sdp_workspace", "update", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceUpdateRequest.class);
        addRequestClass("sdp_workspace", "update_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceUpdateRequest.class);

        addRequestClass("sdp_workspace", "delete", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceDeleteRequest.class);
        addRequestClass("sdp_workspace", "delete_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceDeleteRequest.class);

        addRequestClass("sdp_workspace", "query", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceQueryRequest.class);
        addRequestClass("sdp_workspace", "query_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceQueryRequest.class);

        addRequestClass("sdp_workspace", "list", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceQueryRequest.class);
        addRequestClass("sdp_workspace", "list_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceQueryRequest.class);

        addRequestClass("sdp_workspace", "count", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceQueryRequest.class);
        addRequestClass("sdp_workspace", "count_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceQueryRequest.class);

        addRequestClass("sdp_workspace", "stat", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceQueryRequest.class);
        addRequestClass("sdp_workspace", "stat_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceQueryRequest.class);

    }

    @PostMapping("/add")
    public Integer addSdpWorkspace(@RequestBody SdpWorkspaceAddRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "add", request, callFromEncrypt);
        return super.addSdpWorkspace(request);
    }

    @PostMapping("/add_encrypt")
    public String addSdpWorkspaceEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceAddRequest request = (SdpWorkspaceAddRequest) super.decrypt("sdp_workspace", "add_encrypt", strRequest, SdpWorkspaceAddRequest.class);
        Integer result = addSdpWorkspace(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);

        return super.encrypt(request, response);
    }

    @PostMapping("/update")
    public Integer updateSdpWorkspace(@RequestBody SdpWorkspaceUpdateRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "update", request, callFromEncrypt);
        return super.updateSdpWorkspace(request);
    }

    @PostMapping("/update_encrypt")
    public String updateSdpWorkspaceEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceUpdateRequest request = (SdpWorkspaceUpdateRequest) super.decrypt("sdp_workspace", "update_encrypt", strRequest, SdpWorkspaceUpdateRequest.class);
        Integer result = updateSdpWorkspace(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);

        return super.encrypt(request, response);
    }

    @PostMapping("/delete")
    public Integer deleteSdpWorkspace(@RequestBody SdpWorkspaceDeleteRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "delete", request, callFromEncrypt);
        return super.deleteSdpWorkspace(request);
    }

    @PostMapping("/delete_encrypt")
    public String deleteSdpWorkspaceEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceDeleteRequest request = (SdpWorkspaceDeleteRequest) super.decrypt("sdp_workspace", "delete_encrypt", strRequest, SdpWorkspaceDeleteRequest.class);
        Integer result = deleteSdpWorkspace(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);

        return super.encrypt(request, response);
    }

    @PostMapping("/query")
    public SdpWorkspaceQueryResponse querySdpWorkspace(@RequestBody SdpWorkspaceQueryRequest request, Integer callFromEncrypt) throws Exception {
      super.fixRequest("sdp_workspace", "query", request, callFromEncrypt);
      SdpWorkspaceQueryResponse result = super.querySdpWorkspace(request);
      super.fixResult("sdp_workspace", "query", request);
      return result;
    }

    @PostMapping("/query_encrypt")
    public String querySdpWorkspaceEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceQueryRequest request = (SdpWorkspaceQueryRequest) super.decrypt("sdp_workspace", "query_encrypt", strRequest, SdpWorkspaceQueryRequest.class);
        SdpWorkspaceQueryResponse result = querySdpWorkspace(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);

        return super.encrypt(request, response);
    }

    @PostMapping("/list")
    public List<SdpWorkspaceQueryResponse> listSdpWorkspace(@RequestBody SdpWorkspaceQueryRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "list", request, callFromEncrypt);
        List<SdpWorkspaceQueryResponse> list = super.listSdpWorkspace(request);
        super.fixResult("sdp_workspace", "list", list);
        return list;
    }

    @PostMapping("/list_encrypt")
    public String listSdpWorkspaceEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceQueryRequest request = (SdpWorkspaceQueryRequest) super.decrypt("sdp_workspace", "list_encrypt", strRequest, SdpWorkspaceQueryRequest.class);
        List<SdpWorkspaceQueryResponse> result = listSdpWorkspace(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);

        return super.encrypt(request, response);
    }

    @PostMapping("/count")
    public Integer countSdpWorkspace(@RequestBody SdpWorkspaceQueryRequest request, Integer callFromEncrypt) throws Exception {
      super.fixRequest("sdp_workspace", "count", request, callFromEncrypt);
      return super.countSdpWorkspace(request);
    }


    @PostMapping("/count_encrypt")
    public String countSdpWorkspaceEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceQueryRequest request = (SdpWorkspaceQueryRequest) super.decrypt("sdp_workspace", "count_encrypt", strRequest, SdpWorkspaceQueryRequest.class);
        Integer result = countSdpWorkspace(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);

        return super.encrypt(request, response);
    }

    @PostMapping("/stat")
    public BaseStatResponse statSdpWorkspace(@RequestBody SdpWorkspaceQueryRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "stat", request, callFromEncrypt);
        return super.statSdpWorkspace(request);
    }

    @PostMapping("/stat_encrypt")
    public String statSdpWorkspaceEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceQueryRequest request = (SdpWorkspaceQueryRequest) super.decrypt("sdp_workspace", "stat_encrypt", strRequest, SdpWorkspaceQueryRequest.class);
        BaseStatResponse result = statSdpWorkspace(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);

        return super.encrypt(request, response);
    }

    static {
        addRequestClass("sdp_workspace", "get_column_list", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetColumnListRequest.class);
        addRequestClass("sdp_workspace", "get_column_list_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetColumnListRequest.class);
    
        addRequestClass("sdp_workspace", "count_get_column_list", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetColumnListRequest.class);
        addRequestClass("sdp_workspace", "count_get_column_list_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetColumnListRequest.class);
    
        addRequestClass("sdp_workspace", "stat_get_column_list", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetColumnListRequest.class);
        addRequestClass("sdp_workspace", "stat_get_column_list_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetColumnListRequest.class);
    
        addRequestClass("sdp_workspace", "export_excel_get_column_list", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetColumnListRequest.class);
        addRequestClass("sdp_workspace", "export_excel_get_column_list_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetColumnListRequest.class);
    }

    @PostMapping("/get_column_list")
    public List<SdpWorkspaceForGetColumnListResponse> getColumnList(@RequestBody SdpWorkspaceForGetColumnListRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "get_column_list", request, callFromEncrypt);
        List<SdpWorkspaceForGetColumnListResponse> list = super.getColumnList(request);
        super.fixResult("sdp_workspace", "get_column_list", list);
        return list;
    }

    @PostMapping("/get_column_list_encrypt")
    public String getColumnListEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceForGetColumnListRequest request = (SdpWorkspaceForGetColumnListRequest)decrypt("sdp_workspace", "get_column_list_encrypt", strRequest, SdpWorkspaceForGetColumnListRequest.class);
        List<SdpWorkspaceForGetColumnListResponse> result = getColumnList(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);
        
        return super.encrypt(request, response);
    }

    @PostMapping("/count_get_column_list")
    public Integer countForGetColumnList(@RequestBody SdpWorkspaceForGetColumnListRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "count_get_column_list", request, callFromEncrypt);
        return super.countForGetColumnList(request);
    }

    @PostMapping("/count_get_column_list_encrypt")
    public String countForGetColumnListEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceForGetColumnListRequest request = (SdpWorkspaceForGetColumnListRequest)decrypt("sdp_workspace", "count_for_get_column_list_encrypt", strRequest, SdpWorkspaceForGetColumnListRequest.class);
        Integer result = countForGetColumnList(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);
        
        return super.encrypt(request, response);
    }

    @PostMapping("/stat_get_column_list")
    public BaseStatResponse statForGetColumnList(@RequestBody SdpWorkspaceForGetColumnListRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "stat_get_column_list", request, callFromEncrypt);
        return super.statForGetColumnList(request);
    }

    @PostMapping("/stat_get_column_list_encrypt")
    public String statForGetColumnListEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceForGetColumnListRequest request = (SdpWorkspaceForGetColumnListRequest)decrypt("sdp_workspace", "stat_for_get_column_list_encrypt", strRequest, SdpWorkspaceForGetColumnListRequest.class);
        BaseStatResponse result = statForGetColumnList(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);
        
        return super.encrypt(request, response);
    }

    @ResponseBody
    @PostMapping("/export_excel_get_column_list")
    public String exportExcelGetColumnList(@RequestBody SdpWorkspaceForGetColumnListRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "export_excel_get_column_list", request, callFromEncrypt);
        return super.exportExcelGetColumnList(request);
    }

    @ResponseBody
    @PostMapping("/export_excel_get_column_list_encrypt")
    public String exportExcelGetColumnListEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceForGetColumnListRequest request = (SdpWorkspaceForGetColumnListRequest)decrypt("sdp_workspace", "export_excel_get_column_list_encrypt", strRequest, SdpWorkspaceForGetColumnListRequest.class);
        String result = exportExcelGetColumnList(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);
        
        return super.encrypt(request, response);
    }

    static {
        addRequestClass("sdp_workspace", "get_table_list", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetTableListRequest.class);
        addRequestClass("sdp_workspace", "get_table_list_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetTableListRequest.class);
    
        addRequestClass("sdp_workspace", "count_get_table_list", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetTableListRequest.class);
        addRequestClass("sdp_workspace", "count_get_table_list_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetTableListRequest.class);
    
        addRequestClass("sdp_workspace", "stat_get_table_list", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetTableListRequest.class);
        addRequestClass("sdp_workspace", "stat_get_table_list_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetTableListRequest.class);
    
        addRequestClass("sdp_workspace", "export_excel_get_table_list", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetTableListRequest.class);
        addRequestClass("sdp_workspace", "export_excel_get_table_list_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetTableListRequest.class);
    }

    @PostMapping("/get_table_list")
    public List<SdpWorkspaceForGetTableListResponse> getTableList(@RequestBody SdpWorkspaceForGetTableListRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "get_table_list", request, callFromEncrypt);
        List<SdpWorkspaceForGetTableListResponse> list = super.getTableList(request);
        super.fixResult("sdp_workspace", "get_table_list", list);
        return list;
    }

    @PostMapping("/get_table_list_encrypt")
    public String getTableListEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceForGetTableListRequest request = (SdpWorkspaceForGetTableListRequest)decrypt("sdp_workspace", "get_table_list_encrypt", strRequest, SdpWorkspaceForGetTableListRequest.class);
        List<SdpWorkspaceForGetTableListResponse> result = getTableList(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);
        
        return super.encrypt(request, response);
    }

    @PostMapping("/count_get_table_list")
    public Integer countForGetTableList(@RequestBody SdpWorkspaceForGetTableListRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "count_get_table_list", request, callFromEncrypt);
        return super.countForGetTableList(request);
    }

    @PostMapping("/count_get_table_list_encrypt")
    public String countForGetTableListEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceForGetTableListRequest request = (SdpWorkspaceForGetTableListRequest)decrypt("sdp_workspace", "count_for_get_table_list_encrypt", strRequest, SdpWorkspaceForGetTableListRequest.class);
        Integer result = countForGetTableList(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);
        
        return super.encrypt(request, response);
    }

    @PostMapping("/stat_get_table_list")
    public BaseStatResponse statForGetTableList(@RequestBody SdpWorkspaceForGetTableListRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "stat_get_table_list", request, callFromEncrypt);
        return super.statForGetTableList(request);
    }

    @PostMapping("/stat_get_table_list_encrypt")
    public String statForGetTableListEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceForGetTableListRequest request = (SdpWorkspaceForGetTableListRequest)decrypt("sdp_workspace", "stat_for_get_table_list_encrypt", strRequest, SdpWorkspaceForGetTableListRequest.class);
        BaseStatResponse result = statForGetTableList(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);
        
        return super.encrypt(request, response);
    }

    @ResponseBody
    @PostMapping("/export_excel_get_table_list")
    public String exportExcelGetTableList(@RequestBody SdpWorkspaceForGetTableListRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "export_excel_get_table_list", request, callFromEncrypt);
        return super.exportExcelGetTableList(request);
    }

    @ResponseBody
    @PostMapping("/export_excel_get_table_list_encrypt")
    public String exportExcelGetTableListEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceForGetTableListRequest request = (SdpWorkspaceForGetTableListRequest)decrypt("sdp_workspace", "export_excel_get_table_list_encrypt", strRequest, SdpWorkspaceForGetTableListRequest.class);
        String result = exportExcelGetTableList(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);
        
        return super.encrypt(request, response);
    }

    static {
        addRequestClass("sdp_workspace", "get_db_config", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetDbConfigRequest.class);
        addRequestClass("sdp_workspace", "get_db_config_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetDbConfigRequest.class);
    
        addRequestClass("sdp_workspace", "count_get_db_config", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetDbConfigRequest.class);
        addRequestClass("sdp_workspace", "count_get_db_config_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetDbConfigRequest.class);
    
        addRequestClass("sdp_workspace", "stat_get_db_config", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetDbConfigRequest.class);
        addRequestClass("sdp_workspace", "stat_get_db_config_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetDbConfigRequest.class);
    
        addRequestClass("sdp_workspace", "export_excel_get_db_config", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetDbConfigRequest.class);
        addRequestClass("sdp_workspace", "export_excel_get_db_config_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceForGetDbConfigRequest.class);
    }

    @PostMapping("/get_db_config")
    public List<SdpWorkspaceForGetDbConfigResponse> getDbConfig(@RequestBody SdpWorkspaceForGetDbConfigRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "get_db_config", request, callFromEncrypt);
        List<SdpWorkspaceForGetDbConfigResponse> list = super.getDbConfig(request);
        super.fixResult("sdp_workspace", "get_db_config", list);
        return list;
    }

    @PostMapping("/get_db_config_encrypt")
    public String getDbConfigEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceForGetDbConfigRequest request = (SdpWorkspaceForGetDbConfigRequest)decrypt("sdp_workspace", "get_db_config_encrypt", strRequest, SdpWorkspaceForGetDbConfigRequest.class);
        List<SdpWorkspaceForGetDbConfigResponse> result = getDbConfig(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);
        
        return super.encrypt(request, response);
    }

    @PostMapping("/count_get_db_config")
    public Integer countForGetDbConfig(@RequestBody SdpWorkspaceForGetDbConfigRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "count_get_db_config", request, callFromEncrypt);
        return super.countForGetDbConfig(request);
    }

    @PostMapping("/count_get_db_config_encrypt")
    public String countForGetDbConfigEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceForGetDbConfigRequest request = (SdpWorkspaceForGetDbConfigRequest)decrypt("sdp_workspace", "count_for_get_db_config_encrypt", strRequest, SdpWorkspaceForGetDbConfigRequest.class);
        Integer result = countForGetDbConfig(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);
        
        return super.encrypt(request, response);
    }

    @PostMapping("/stat_get_db_config")
    public BaseStatResponse statForGetDbConfig(@RequestBody SdpWorkspaceForGetDbConfigRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "stat_get_db_config", request, callFromEncrypt);
        return super.statForGetDbConfig(request);
    }

    @PostMapping("/stat_get_db_config_encrypt")
    public String statForGetDbConfigEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceForGetDbConfigRequest request = (SdpWorkspaceForGetDbConfigRequest)decrypt("sdp_workspace", "stat_for_get_db_config_encrypt", strRequest, SdpWorkspaceForGetDbConfigRequest.class);
        BaseStatResponse result = statForGetDbConfig(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);
        
        return super.encrypt(request, response);
    }

    @ResponseBody
    @PostMapping("/export_excel_get_db_config")
    public String exportExcelGetDbConfig(@RequestBody SdpWorkspaceForGetDbConfigRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "export_excel_get_db_config", request, callFromEncrypt);
        return super.exportExcelGetDbConfig(request);
    }

    @ResponseBody
    @PostMapping("/export_excel_get_db_config_encrypt")
    public String exportExcelGetDbConfigEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceForGetDbConfigRequest request = (SdpWorkspaceForGetDbConfigRequest)decrypt("sdp_workspace", "export_excel_get_db_config_encrypt", strRequest, SdpWorkspaceForGetDbConfigRequest.class);
        String result = exportExcelGetDbConfig(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);
        
        return super.encrypt(request, response);
    }


    static {
        addRequestClass("sdp_workspace", "clone", "sdpWorkspaceController", SdpWorkspaceWebController.class, BaseNameIdRequest.class);
        addRequestClass("sdp_workspace", "clone_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, BaseNameIdRequest.class);
    }
    
    @ResponseBody
    @PostMapping("/clone")
    public Integer clone(@RequestBody BaseNameIdRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "clone", request, callFromEncrypt);
        Integer result = super.clone(request);
        super.fixResult("sdp_workspace", "clone", request);
        return result;
    }

    @ResponseBody
    @PostMapping("/clone_encrypt")
    public String cloneEncrypt(@RequestBody String strRequest) throws Exception {
        BaseNameIdRequest request = (BaseNameIdRequest)decrypt("sdp_workspace", "clone_encrypt", strRequest, BaseNameIdRequest.class);
        Integer result = clone(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);
        
        return super.encrypt(request, response);
    }

    static {
        addRequestClass("sdp_workspace", "clone_workspace", "sdpWorkspaceController", SdpWorkspaceWebController.class, BaseNameIdRequest.class);
        addRequestClass("sdp_workspace", "clone_workspace_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, BaseNameIdRequest.class);
    }
    
    @ResponseBody
    @PostMapping("/clone_workspace")
    public Integer cloneWorkspace(@RequestBody BaseNameIdRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "clone_workspace", request, callFromEncrypt);
        Integer result = super.cloneWorkspace(request);
        super.fixResult("sdp_workspace", "clone_workspace", request);
        return result;
    }

    @ResponseBody
    @PostMapping("/clone_workspace_encrypt")
    public String cloneWorkspaceEncrypt(@RequestBody String strRequest) throws Exception {
        BaseNameIdRequest request = (BaseNameIdRequest)decrypt("sdp_workspace", "clone_workspace_encrypt", strRequest, BaseNameIdRequest.class);
        Integer result = cloneWorkspace(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);
        
        return super.encrypt(request, response);
    }

    static {
        addRequestClass("sdp_workspace", "fix_json_object", "sdpWorkspaceController", SdpWorkspaceWebController.class, BaseNameRequest.class);
        addRequestClass("sdp_workspace", "fix_json_object_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, BaseNameRequest.class);
    }
    
    @ResponseBody
    @PostMapping("/fix_json_object")
    public String fixJsonObject(@RequestBody BaseNameRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "fix_json_object", request, callFromEncrypt);
        String result = super.fixJsonObject(request);
        super.fixResult("sdp_workspace", "fix_json_object", request);
        return result;
    }

    @ResponseBody
    @PostMapping("/fix_json_object_encrypt")
    public String fixJsonObjectEncrypt(@RequestBody String strRequest) throws Exception {
        BaseNameRequest request = (BaseNameRequest)decrypt("sdp_workspace", "fix_json_object_encrypt", strRequest, BaseNameRequest.class);
        String result = fixJsonObject(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);
        
        return super.encrypt(request, response);
    }

    static {
        addRequestClass("sdp_workspace", "test_connect", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceUpdateRequest.class);
        addRequestClass("sdp_workspace", "test_connect_encrypt", "sdpWorkspaceController", SdpWorkspaceWebController.class, SdpWorkspaceUpdateRequest.class);
    }
    
    @ResponseBody
    @PostMapping("/test_connect")
    public String testConnect(@RequestBody SdpWorkspaceUpdateRequest request, Integer callFromEncrypt) throws Exception {
        super.fixRequest("sdp_workspace", "test_connect", request, callFromEncrypt);
        String result = super.testConnect(request);
        super.fixResult("sdp_workspace", "test_connect", request);
        return result;
    }

    @ResponseBody
    @PostMapping("/test_connect_encrypt")
    public String testConnectEncrypt(@RequestBody String strRequest) throws Exception {
        SdpWorkspaceUpdateRequest request = (SdpWorkspaceUpdateRequest)decrypt("sdp_workspace", "test_connect_encrypt", strRequest, SdpWorkspaceUpdateRequest.class);
        String result = testConnect(request, 1);
        if (result == null) {
            return null;
        }
        String response = toJSONString(result);
        
        return super.encrypt(request, response);
    }

}
